package com.gljx.web.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.gljx.web.Entity.SubjectOneRegentry;
import org.springframework.stereotype.Component;

@Component
public interface SubjectOneRegentryMapper {
    int deleteByPrimaryKey(String fid);

    int insert(SubjectOneRegentry record);

    int insertSelective(SubjectOneRegentry record);

    SubjectOneRegentry selectByPrimaryKey(String fid);

    int updateByPrimaryKeySelective(SubjectOneRegentry record);

    int updateByPrimaryKey(SubjectOneRegentry record);

    /**
     * 根据父类id查找子类信息
     * @param fid
     * @return
     */
    List<SubjectOneRegentry> selSubjectOneRegByParentId(@Param("fid")String fid, @Param("studentName")String studentName);

    int deleteByParentId(String parentid);
}